/**
 * @Description:
 * @author zhaokai
 * @date 2020/1/12
 */
const dns = require('dns');

dns.lookup('iana.org', (err, address, family) => {
    console.log('地址: %j 地址族: IPv%s', address, family);
});